#pragma once
#include<Windows.h>
#include<d3d9.h>
class FWGame
{
protected:
	int Width;
	int Height;
	char* Name;
	static HRESULT CALLBACK WinProc(HWND hwnd, UINT message,WPARAM wParam,LPARAM lParam);
public:	
	HWND hWnd;
	HINSTANCE hInstance;
	LPDIRECT3D9 d3d;
	LPDIRECT3DDEVICE9 d3dv9;
	bool InitWindow();
	bool InitDX();
	virtual void Load();
	void Run();
	FWGame(void);
	~FWGame(void);
	FWGame(HINSTANCE hinst,char* name,int w, int h);
	virtual void Update();
	virtual void Render();
};

